Hi Grace,
JP7 Pins 11&12 would be encoder input 2. You would need to conifigure an axis for Encoder Input and InputChan0=2. Then the Axis Screen should display the encoder position. If you turn the encoder the encoder should count and if you turn the encoder back to where you started the count should return to the orignal value. I wouldn't be concerned that other floating unused inputs toggle randomly.
I forget what type of amplifiers you have. Open loop step/dir inputs I assume?
You might start with something simple like:
#include "KMotionDef.h"
#define FACTOR 1.0
main()
{
double Target=ch2->Dest;
for (;;) // loop forever
{
WaitNextTimeSlice();
// advance Target position smoothly
// at rate determined by Encoder #2
Target += FACTOR * ch2->Position;
MoveExp(2,Target,0.1);
}
}
Regards
TK